Optimal. Leaf size=66 \[ -\frac {B \sqrt {a+b x^2}}{x}-\frac {A \left (a+b x^2\right )^{3/2}}{3 a x^3}+\sqrt {b} B \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 66, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 4, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {462, 283, 223,
212} \begin {gather*} -\frac {A \left (a+b x^2\right )^{3/2}}{3 a x^3}-\frac {B \sqrt {a+b x^2}}{x}+\sqrt {b} B \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 212
Rule 223
Rule 283
Rule 462
Rubi steps
\begin {align*} \int \frac {\sqrt {a+b x^2} \left (A+B x^2\right )}{x^4} \, dx &=-\frac {A \left (a+b x^2\right )^{3/2}}{3 a x^3}+B \int \frac {\sqrt {a+b x^2}}{x^2} \, dx\\ &=-\frac {B \sqrt {a+b x^2}}{x}-\frac {A \left (a+b x^2\right )^{3/2}}{3 a x^3}+(b B) \int \frac {1}{\sqrt {a+b x^2}} \, dx\\ &=-\frac {B \sqrt {a+b x^2}}{x}-\frac {A \left (a+b x^2\right )^{3/2}}{3 a x^3}+(b B) \text {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {x}{\sqrt {a+b x^2}}\right )\\ &=-\frac {B \sqrt {a+b x^2}}{x}-\frac {A \left (a+b x^2\right )^{3/2}}{3 a x^3}+\sqrt {b} B \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.10, size = 70, normalized size = 1.06 \begin {gather*} \frac {\sqrt {a+b x^2} \left (-a A-A b x^2-3 a B x^2\right )}{3 a x^3}-\sqrt {b} B \log \left (-\sqrt {b} x+\sqrt {a+b x^2}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 81, normalized size = 1.23
method | result | size |
risch | \(-\frac {\sqrt {b \,x^{2}+a}\, \left (A b \,x^{2}+3 B a \,x^{2}+A a \right )}{3 x^{3} a}+B \sqrt {b}\, \ln \left (x \sqrt {b}+\sqrt {b \,x^{2}+a}\right )\) | \(57\) |
default | \(-\frac {A \left (b \,x^{2}+a \right )^{\frac {3}{2}}}{3 a \,x^{3}}+B \left (-\frac {\left (b \,x^{2}+a \right )^{\frac {3}{2}}}{a x}+\frac {2 b \left (\frac {x \sqrt {b \,x^{2}+a}}{2}+\frac {a \ln \left (x \sqrt {b}+\sqrt {b \,x^{2}+a}\right )}{2 \sqrt {b}}\right )}{a}\right )\) | \(81\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 48, normalized size = 0.73 \begin {gather*} B \sqrt {b} \operatorname {arsinh}\left (\frac {b x}{\sqrt {a b}}\right ) - \frac {\sqrt {b x^{2} + a} B}{x} - \frac {{\left (b x^{2} + a\right )}^{\frac {3}{2}} A}{3 \, a x^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 2.13, size = 137, normalized size = 2.08 \begin {gather*} \left [\frac {3 \, B a \sqrt {b} x^{3} \log \left (-2 \, b x^{2} - 2 \, \sqrt {b x^{2} + a} \sqrt {b} x - a\right ) - 2 \, {\left ({\left (3 \, B a + A b\right )} x^{2} + A a\right )} \sqrt {b x^{2} + a}}{6 \, a x^{3}}, -\frac {3 \, B a \sqrt {-b} x^{3} \arctan \left (\frac {\sqrt {-b} x}{\sqrt {b x^{2} + a}}\right ) + {\left ({\left (3 \, B a + A b\right )} x^{2} + A a\right )} \sqrt {b x^{2} + a}}{3 \, a x^{3}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 1.51, size = 107, normalized size = 1.62 \begin {gather*} - \frac {A \sqrt {b} \sqrt {\frac {a}{b x^{2}} + 1}}{3 x^{2}} - \frac {A b^{\frac {3}{2}} \sqrt {\frac {a}{b x^{2}} + 1}}{3 a} - \frac {B \sqrt {a}}{x \sqrt {1 + \frac {b x^{2}}{a}}} + B \sqrt {b} \operatorname {asinh}{\left (\frac {\sqrt {b} x}{\sqrt {a}} \right )} - \frac {B b x}{\sqrt {a} \sqrt {1 + \frac {b x^{2}}{a}}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 151 vs.
\(2 (54) = 108\).
time = 1.38, size = 151, normalized size = 2.29 \begin {gather*} -\frac {1}{2} \, B \sqrt {b} \log \left ({\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{2}\right ) + \frac {2 \, {\left (3 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{4} B a \sqrt {b} + 3 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{4} A b^{\frac {3}{2}} - 6 \, {\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{2} B a^{2} \sqrt {b} + 3 \, B a^{3} \sqrt {b} + A a^{2} b^{\frac {3}{2}}\right )}}{3 \, {\left ({\left (\sqrt {b} x - \sqrt {b x^{2} + a}\right )}^{2} - a\right )}^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.68, size = 76, normalized size = 1.15 \begin {gather*} -\frac {B\,\sqrt {b\,x^2+a}}{x}-\frac {A\,{\left (b\,x^2+a\right )}^{3/2}}{3\,a\,x^3}-\frac {B\,\sqrt {b}\,\mathrm {asin}\left (\frac {\sqrt {b}\,x\,1{}\mathrm {i}}{\sqrt {a}}\right )\,\sqrt {b\,x^2+a}\,1{}\mathrm {i}}{\sqrt {a}\,\sqrt {\frac {b\,x^2}{a}+1}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________